package com.lzy.system.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 存储字段
 * </p>
 *
 * @author lcc
 * @since 2024-01-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_bus_entity_field")
@ApiModel(value = "SysBusEntityField对象", description = "存储字段")
public class SysBusEntityField implements Serializable {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @JsonProperty(access = JsonProperty.Access.READ_WRITE)
    private String id;
    @ApiModelProperty("标题")
    @TableField("f_title")
    private String f_title;

    @ApiModelProperty("名称")
    @TableField("f_name")
    private String f_name;

    @ApiModelProperty("类型")
    @TableField("f_type")
    private String f_type;

    @ApiModelProperty("长度")
    @TableField("f_length")
    private String f_length;

    @ApiModelProperty("存储模型id")
    @TableField("entity_id")
    private String entity_id;

    @ApiModelProperty("是否为空")
    @TableField("f_null")
    private Boolean f_null;

    @ApiModelProperty("排序")
    @TableField("order_index")
    private Integer order_index;

    @ApiModelProperty("字段描述")
    @TableField("f_desc")
    private String f_desc;
}
